package org.example.leetcode.common._enum;

public enum CodeStatusEnum implements BaseEnum<String,String> {
    compile_error("1","编译失败"),
    runTime_error("2","运行时异常"),
    out_of_time("3","运行超时"),
    error("4","错误"),
    result_error("5","结果错误"),
    success("6","成功")
    ;

    private String code;
    private String name;
    private CodeStatusEnum(String code,String name){
        this.code=code;
        this.name=name;
    }
    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getName() {
        return name;
    }
}
